home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Developer Helper 1: Phil & Dave's Excellent CD
/
Excellent CD HFS.raw
/
Moof
/
Goodies
/
MPW Goodies
/
MPW Goodies⁄DTS
/
MyBuildMenu
< prev
next >
Wrap
Text File
|
2022-08-05
|
4KB
|
120 lines
#
# Build our custom version of the Build Menu
#
Set Exit 0
DeleteMenu Build ≥ Dev:Null
AddMenu Build 'Create Build Commands…' ∂
'Set Program "`∂`Commando CreateMake || Echo Set Status 0∂` ≥ "{ShellDirectory}"MPW.Errors ∂
|| Alert < "{ShellDirectory}"MPW.Errors`"'
AddMenu Build '(-' ''
AddMenu Build 'Build…/B' ∂
'Begin; ∂
Set NewProgram "`Request "Program Name?" -d "{Program}" || Echo '""'`"; ∂
Exit If "{NewProgram}" == ""; ∂
Set Program "{NewProgram}"; ∂
Open "{Worksheet}"; ∂
Echo; Echo; ∂
BuildProgram "{Program}"; ∂
End >> "{Worksheet}" ≥≥ Dev:StdOut'
AddMenu Build 'Build Same/∫' ∂
'Begin; ∂
Exit If "{Program}" == ""; ∂
Open "{Worksheet}"; ∂
Echo; Echo; ∂
BuildProgram "{Program}"; ∂
End >> "{Worksheet}" ≥≥ Dev:StdOut'
AddMenu Build 'Full Build…' ∂
'Begin; ∂
Set NewProgram "`Request "Program Name?" -d "{Program}" || Echo '""'`"; ∂
Exit If "{NewProgram}" == ""; ∂
Set Program "{NewProgram}"; ∂
Open "{Worksheet}"; ∂
Echo; Echo; ∂
BuildProgram -e "{Program}"; ∂
End >> "{Worksheet}" ≥≥ Dev:StdOut'
AddMenu Build 'Show Build Commands…' ∂
'Begin; ∂
Set NewProgram "`Request "Program Name?" -d "{Program}" || Echo '""'`"; ∂
Exit If "{NewProgram}" == ""; ∂
Set Program "{NewProgram}"; ∂
Open "{Worksheet}"; ∂
Echo; Echo; ∂
BuildCommands "{Program}"; ∂
End >> "{Worksheet}" ≥≥ Dev:StdOut'
AddMenu Build 'Show Full Build Commands…' ∂
'Begin; ∂
Set NewProgram "`Request "Program Name?" -d "{Program}" || Echo '""'`"; ∂
Exit If "{NewProgram}" == ""; ∂
Set Program "{NewProgram}"; ∂
Open "{Worksheet}"; ∂
Echo; Echo; ∂
BuildCommands -e "{Program}"; ∂
End >> "{Worksheet}" ≥≥ Dev:StdOut'
AddMenu Build '(-' ''
Alias MADebugOff "AddMenu Build 'MABuild Debug' MADebugOn; Set MADebuggingFlag 0"
Alias MADebugOn "AddMenu Build 'MABuild Debug!' MADebugOff; Set MADebuggingFlag 1"
Alias MASymOff "AddMenu Build 'MABuild SADE Symbols' MASymOn; Set MASADEFlag 0"
Alias MASymOn "AddMenu Build 'MABuild SADE Symbols!' MASymOff; Set MASADEFlag 1"
Alias MARunOff "AddMenu Build 'MABuild Runs App' MARunOn; Set MARunFlag 0"
Alias MARunOn "AddMenu Build 'MABuild Runs App!' MARunOff; Set MARunFlag 1"
Alias MAAutoBuildOff "AddMenu Build 'MABuild AutoBuild MacApp' MAAutoBuildOn; Set MAAutoBuildFlag 0"
Alias MAAutoBuildOn "AddMenu Build 'MABuild AutoBuild MacApp!' MAAutoBuildOff; Set MAAutoBuildFlag 1"
Alias EvalMAOpts ∂
'If {MADebuggingFlag} == 1; Set CurMABuildOpts "-Debug"; Else; Set CurMABuildOpts "-NoDebug"; End; ∂
If {MASADEFlag} == 1; Set CurMABuildOpts "{CurMABuildOpts} -Sym"; End; ∂
If {MAAutoBuildFlag} == 1; Set CurMABuildOpts "{CurMABuildOpts} -AutoBuild"; End; ∂
If {MARunFlag} == 1; Set CurMABuildOpts "{CurMABuildOpts} -Run"; End'
If {MADebuggingFlag} == 1
AddMenu Build 'MABuild Debug!' MADebugOff
Else
AddMenu Build 'MABuild Debug' MADebugOn
End
If {MASADEFlag} == 1
AddMenu Build 'MABuild SADE Symbols!' MASymOff
Else
AddMenu Build 'MABuild SADE Symbols' MASymOn
End
If {MARunFlag} == 1
AddMenu Build 'MABuild Runs App!' MARunOff
Else
AddMenu Build 'MABuild Runs App' MARunOn
End
If {MAAutoBuildFlag} == 1
AddMenu Build 'MABuild AutoBuild MacApp!' MAAutoBuildOff
Else
AddMenu Build 'MABuild AutoBuild MacApp' MAAutoBuildOn
End
AddMenu Build '(-' ''
AddMenu Build 'MaBuild…' ∂
'Begin; ∂
Set NewProgram "`Request "Program Name?" -d "{Program}" || Echo '""'`"; ∂
Exit If "{NewProgram}" == ""; ∂
EvalMAOpts; ∂
Set Program "{NewProgram}"; ∂
Open "{Worksheet}"; ∂
Echo; ∂
MABuild "{Program}" {CurMABuildOpts}; ∂
End >> "{Worksheet}" ≥≥ Dev:StdOut'
AddMenu Build 'MABuild Same/√' ∂
'Begin; ∂
Exit If "{Program}" == ""; ∂
EvalMAOpts; ∂
Open "{Worksheet}"; ∂
Echo; ∂
MABuild "{Program}" {CurMABuildOpts}; ∂
End >> "{Worksheet}" ≥≥ Dev:StdOut'
AddMenu Build '(-' ''
AddMenu Build 'Next Error/≥' ∂
'Begin; ∂
Find /•[ ∂t]*File/ "{Worksheet}"; ∂
Find !0 "{Worksheet}"; ∂
Execute "{Worksheet}.§"; ∂
End > Dev:Null ≥ Dev:Null'
AddMenu Build 'Previous Error/≤' ∂
'Begin; ∂
Find \•[ ∂t]*File\ "{Worksheet}"; ∂
Find !0 "{Worksheet}"; ∂
Execute "{Worksheet}.§"; ∂
End > Dev:Null ≥ Dev:Null'
Set Exit 1